<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"
>
<h:head>
	<f:metadata>
		<f:event type="preRenderView" listener="#{configuracaoManagedBean.configTheme('bootstrap')}" />
	</f:metadata>
	<link rel="stylesheet" href="/divulgaqui/css/interna.css" />
	<f:facet name="first">
		<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
		<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
	</f:facet>

	<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/default.css" />
	<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />
	<script type="text/javascript">
		/*
			Função para atualizar os dados da página de pesquisa
			após exlcluir um ValorEspecificacao do Modelo (pesquisaModelo.xhtml)
			- Executa o click no componente JSF -
		*/
		function atualizarDados(){			
			document.getElementById("formPesqModelo:btPesquisa").click();
		}
	</script>
</h:head>
<h:body>
	<f:view>
		<p:layout fullPage="true">

			<p:layoutUnit position="north" size="70" styleClass="sem-borda">
				<ui:insert name="header" />
				<div id="usuarioLogado">
					<h:form><h:outputText value="Logado como #{loginManagedBean.pessoa.nome} com perfil #{loginManagedBean.pessoa.perfil.nome} " />
					<p:commandLink actionListener="#{loginManagedBean.logout()}" ajax="false" type="submit" value="Logout" /></h:form>
					<ui:insert name="usuarioLogado" />
				</div>
				<div id="logo">
					DivulgAqui
					<ui:insert name="logo" />
				</div>
				<div id="menu-barra">
					<h:form id="formMenuBar">
						<p:menubar id="mBarra">
							<p:menuitem value="Pessoa" url="/admin/pessoa/cadastro" icon="ui-icon-newin" />
							<p:menuitem value="Categoria" url="/admin/categoria/cadastro" icon="ui-icon-newwin" />
							<p:menuitem value="Especifica&ccedil;&atilde;o" url="/admin/especificacao/cadastro" icon="ui-icon-newwin" />
							<p:menuitem value="Pacote anuncios" url="/admin/pacote-anuncio/cadastro" icon="ui-icon-newwin" />
							<p:menuitem value="Marca" url="/admin/marca/cadastro" icon="ui-icon-newwin" />
							<p:menuitem value="Modelo" url="/admin/modelo/cadastro" icon="ui-icon-newwin" />
							<p:menuitem value="Relat&oacute;rios" url="/admin/relatorios" icon="ui-icon-newwin"/>
						</p:menubar>
					</h:form>
					<ui:insert name="menu-barra" />
				</div>
			</p:layoutUnit>

			<p:layoutUnit position="south" size="40" styleClass="footer">  
        			Copyright 2012 divulgaqui serviços de anúncios LTDA
        			<ui:insert name="footer" />
			</p:layoutUnit>

			<p:layoutUnit position="west" size="167" header="Op&ccedil;&otilde;es" resizable="true" closable="true" collapsible="true">

				<ui:insert name="nav" />

			</p:layoutUnit>

			<p:layoutUnit position="center" styleClass="sem-borda">
				<ui:insert name="conteudo" />
				<div id="centro">
					<ui:insert name="centro" />
				</div>
			</p:layoutUnit>

		</p:layout>
	</f:view>
</h:body>
</html>